<template>
  <yTable url="/test/table">
    <el-table-column prop="userName" label="用户" />
    <el-table-column prop="password" label="pass" />
    <el-table-column label="操作" fixed="right">
      <template #default="scope">
        <el-button
          link
          type="text"
          size="small"
          @click.prevent="deleteRow(scope.row)"
        >
          删除
        </el-button>
      </template>
    </el-table-column>
  </yTable>
</template>

<script setup lang="ts">
import yTable from '@/components/yTable/YTable.vue'
import {} from 'vue'
const deleteRow = (row: any) => {
  console.log(row)
}
</script>

<style lang="scss" scoped></style>
